cmake_minimum_required(VERSION 3.15)
project(test_prop_get)

enable_testing()
add_test(NAME mytest COMMAND echo "abc")

#define_property(TEST PROPERTY test_prop BRIEF_DOCS "docs" FULL_DOCS "full docs")
#set_property(TEST mytest APPEND PROPERTY test_prop "test_prop value")
set_tests_properties(mytest PROPERTIES test_prop "value")

get_property(var1 TEST mytest PROPERTY test_prop DEFINED)
message(STATUS "test_prop is defined? = ${var1}")
get_property(var2 TEST mytest PROPERTY test_prop SET)
message(STATUS "test_prop is set? = ${var2}")
get_property(var3 TEST mytest PROPERTY test_prop BRIEF_DOCS)
message(STATUS "test_prop is brief docs? = ${var3}")
get_property(var4 TEST mytest PROPERTY test_prop FULL_DOCS)
message(STATUS "test_prop is full docs? = ${var4}")
get_property(var5 TEST mytest PROPERTY test_prop)
message(STATUS "test_prop = ${var5}")

get_test_property(mytest test_prop var6)
message(STATUS "test_prop = ${var6}")
